import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/Home.vue'
import member from '../components/member.vue'
import shopcar from '../components/shopcar.vue'
import search from '../components/search.vue';
import newsList from '../components/newsList.vue';
import newsinfo from '../components/newsshow.vue';
Vue.use(Router)

export default new Router({
  linkActiveClass:'mui-active',
  routes: [
    {name:'root',path:'/',redirect:'/Home'},
    {name:'home',path:'/Home',component:Home},
    {name:'member',path:'/member',component:member},
    {name:'shopcar',path:'/shopcar',component:shopcar},
    {name:'search',path:'/search',component:search},
    {name:'news',path:'/news/newsList',component:newsList},
    {path:'/news/newsInfo/:newsId',component:newsinfo},
  ]
})
